import React from 'react';
import { connect } from 'react-redux';
import reducer from '../../store/user';
import Security from '../../components/user/Security';
import { injectReducer } from '../../store/reducers';
import store from '../../store/createStore';
const mapStateToProps = state => ({
  phone: state.user.userInfo.phone
});

const mapDispatchToProps = {};
injectReducer(store, { key: 'user', reducer });
export default connect(
  mapStateToProps,
  mapDispatchToProps
)(Security);
